package C_AdapterMode;

/**
 * Created by zc on 2017/3/12.
 * 类适配器     继承方式
 * 采用继承方式实现插座适配器
 */
public class TwoPlugAdapterExtends extends GBTwoPlug implements ThreePlugIf {
    @Override
    public void powerWithThreePlug() {
        System.out.println("继承方式实现 2 -> 3 转换");
        this.powerWithTwoPlug();
    }
}
